import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.Period;
import java.time.format.DateTimeFormatter;
import java.util.Scanner;

public class NumberSix {
    public static void main(String[] args) {
        System.out.println("请输入您的生日，格式:yyyy-MM-dd");
        String s=new Scanner(System.in).next();
        System.out.println(s);
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("y-M-d");
        Period between = Period.between(LocalDate.parse(s, dateTimeFormatter),LocalDate.now());
        System.out.println("您已经活了："+between.getYears()+"年零"+between.getMonths()+"月零"+between.getDays()+"天了！");

    }
}
